package springIOC.IOC_XML.beans;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
public class BeanInfoFactory {
    @Bean(name = "beanInfo")
    @Scope("prototype")
    public static BeanInfo getBeanInfo(){
        return new BeanInfo(21,"这是一个beanInfo对象");
    }
}
